<?php

if (!isset($_SESSION['user'])) {
    echo "<div class=\"container\">\n";
    echo "<div class=\"alert alert-danger\" role=\"alert\">\n";
    echo "<p>你还没有登录本网站!</p>";
    echo "<meta http-equiv=\"refresh\" content=\"3;url=login.php\">";
    echo "<p>3秒后转到登录页面......</p>";
    echo "</div>\n";
    echo "</div>\n";
    exit();
}
